package com.woniu.platform.contorller;

import com.woniu.platform.entity.PlatformTenderAuditRecord;
import com.woniu.platform.entity.vo.PlatformTenderVO;
import com.woniu.platform.service.PlatformTenderAuditRecordService;
import com.woniu.util.utils.HttpResult;
import com.woniu.util.utils.RequestResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/tenderAudit")
public class PlatformTenderAuditRecordController {

    @Autowired(required = false)
    private PlatformTenderAuditRecordService tenderAuditRecordService;

    @PostMapping("/insert")
    public HttpResult insertTenderAuditRecord(@RequestBody PlatformTenderAuditRecord tenderAuditRecord) {
        return tenderAuditRecordService.insertTenderAuditRecord(tenderAuditRecord);
    }
    @PostMapping("/queryTenderAudit")
    public HttpResult queryTenderAuditByPage(@RequestBody RequestResult<PlatformTenderAuditRecord> param) {
        return tenderAuditRecordService.queryTenderAuditByPage(param);
    }

    @PostMapping("/queryTender")
    public HttpResult queryTenderByTenderId(Integer tenderId){
        return tenderAuditRecordService.queryTenderByTenderId(tenderId);
    }
    @PostMapping("/queryTenderList")
    public HttpResult queryTenderList(@RequestBody RequestResult<PlatformTenderVO> param){
        return tenderAuditRecordService.queryTenderList(param);
    }
    @PostMapping("/queryFullTender")
    public HttpResult queryTenderByFullAudit(@RequestBody RequestResult<PlatformTenderVO> param){
        return tenderAuditRecordService.queryTenderByFullAudit(param);
    }
}
